<%--
  Created by IntelliJ IDEA.
  User: liuqing
  Date: 2024/10/23
  Time: 22:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8"%>


<script>
    const menuBtn = document.getElementById('menuBtn');
    const menu = document.querySelector('.menu');
    const menuText = document.querySelectorAll('.menuText');
    menuBtn.addEventListener('click', () => {
        menu.classList.toggle('open');
        menuText.forEach(function (text, index) {
            setTimeout(() => {
                text.classList.toggle('open2');
            }, index * 50);
        });
        document.querySelector('.content').classList.toggle('collapsed');
    });
    document.addEventListener('DOMContentLoaded', function() {
        document.querySelector('.content').classList.add('collapsed');
    });

    // $(document).ready(function() {
    //     // 获取当前页码从页面元素
    //     var currentPage = $('#currentPage').val();
    //     var page = 0;
    //     // 获取所有分页链接
    //     $('.pagination .page-link').each(function() {
    //         page++;
    //         if (page === currentPage) {
    //             $(this).addClass('active'); // 添加 'active' 类
    //         }
    //     });
    // });
</script>
<%
    String msg =(String) request.getAttribute("msg");
    if (msg!=null){
        request.removeAttribute("msg"); // 从请求属性中移除消息
%>
<script type="text/javascript">
    window.onload = function() {
        alert("<%=msg%>");
    };
</script>
<%
    }
%>
</body>
</html>
